package com.he.DesignPatterns.command;

/**
 * @description: 具体实现类 购买
 * @Author: HCL
 * @Date: 2024/9/27 14:35
 */
public class BuyStock implements Order {

    private Stock stock;

    public  BuyStock(Stock stock){
        this.stock = stock;
    }

    @Override
    public void execute() {
        stock.buy();
    }
}
